package cn.com.xiaoshoujia.company.activity;

import cn.com.xiaoshoujia.company.entity.CompanyLogin;
import cn.com.xiaoshoujia.company.mapper.CompanyLoginMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

/**
 * Created by yangrui on 2017/7/17.
 */
@Repository
public class CompanyActivity {

    @Autowired
    private CompanyLoginMapper companyLoginMapper;

    /**
     * @Author: yangrui
     * @Description: 根据userId查询企业xcode
     * @Date: 下午2:47 2017/7/27
     */
    public CompanyLogin findById(Long id) {
        return (CompanyLogin) companyLoginMapper.findById(id);
    }
}
